package com.demo.mqtt.picker.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.demo.mqtt.common.BaseConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: mqtt
 * @description: 数据采集信息
 * @author: liuYunKai
 * @create: 2021-03-30 14:26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class PickerInfo  extends BaseConvert implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数采集器ID")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "数采集器编码")
    private String code;

    @ApiModelProperty(value = "数采集器类型")
    private String type;

    @ApiModelProperty(value = "数采集器状态")
    private String status;

    @ApiModelProperty(value = "设备")
    private String device;

    @ApiModelProperty(value = "最后在线时间")
    private Date lastOnlineTime;

    @ApiModelProperty(value = "波形间隔")
    private Integer waveformInterval;

    @ApiModelProperty(value = "长波形间隔")
    private Integer longWaveformInterval;

    @ApiModelProperty(value = "指标间隔")
    private Integer indexInterval;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    @TableLogic
    private Integer deleted;
}
